package com.lee.treasure.component.redis;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @author Lee
 * @date 2020/8/6
 */
@Component
public class MainRedisComponent extends BaseRedisComponent {

    @Resource(name = "redisTemplate")
    private RedisTemplate<String, String> redisTemplate;

    @PostConstruct
    private void init() {
        setRedisTemplate(redisTemplate);
    }

}
